package com.hjq.mallmember.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjq.common.utils.PageUtils;
import com.hjq.mallmember.entity.MemberEntity;
import com.hjq.mallmember.entity.vo.UserLoginVO;
import com.hjq.mallmember.entity.vo.UserRegVO;
import com.hjq.mallmember.exception.phoneExistException;
import com.hjq.mallmember.exception.userNameExistException;

import java.util.Map;

/**
 * 会员
 *
 * @author Hjq
 * @email 1484397309@qq.com.com
 * @date 2022-05-24 16:57:34
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void registerNewMember(UserRegVO regVO) throws phoneExistException, userNameExistException;
    boolean checkPhoneNumUnique(String phoneNum);
    boolean checkUserNameUnique(String username);

    MemberEntity login(UserLoginVO loginVO);
}

